import java.util.Scanner;

public class Program15 {
    public static void main(String[] args) {
        Scanner console = new Scanner(System.in);
        int x,y,z;
        System.out.println("请输入三个整数：");
        x = console.nextInt();
        y = console.nextInt();
        z = console.nextInt();
        //逻辑判断,if的嵌套
        if (x < y){
            if (x < z){
                System.out.print(x + " ");
                if (y < z){
                    System.out.println(y + " " + z);
                }else {
                    System.out.println(z + " " + y);
                }
            }else {
                System.out.println(z + " " + x + " " + y);
            }
        }else {
            if (y > z){
                System.out.println(z + " " + y + " " + x);
            }else {
                System.out.print(y + " ");
                if (x < z){
                    System.out.println(x + " " + z);
                }else {
                    System.out.println(z + " " + x);
                }
            }
        }
    }
}